﻿@using Didsoft.Mvc.Helpers
@model SIOGDE.AccesoDatos.Entidades.Arma
@{
   ViewBag.Title = "Arma";
 }
<link href="~/Content/DataForm.css" rel="stylesheet"/>
@using (Html.BeginForm("DataForm","Arma", FormMethod.Post, new {@class="box common", @id="myDataForm"})) {
     <div class="header">Formulario : Arma</div>
     <fieldset class="boxBody">
         @Html.ValidationMessage("DataFormError")
            <div class="editor-label">
                @Html.LabelFor(model => model.Fuerza)
            </div>
            <div class="editor-field">
                @Html.AutocompleteFor(model => model.FuerzaId_FK, "Fuerza.Nombre", Url.Action("SearchByFilter","Fuerza"))
            </div>
         @Html.HiddenFor(model => model.Guid)
         <div class="editor-label">
             @Html.LabelFor(model => model.Codigo)
         </div>
         <div class="editor-field">
             @Html.EditorFor(model => model.Codigo)
             @Html.ValidationMessageFor(model => model.Codigo)
         </div>
         <div class="editor-label">
             @Html.LabelFor(model => model.Nombre)
         </div>
         <div class="editor-field">
             @Html.EditorFor(model => model.Nombre)
             @Html.ValidationMessageFor(model => model.Nombre)
         </div>
         <div class="editor-label">
             @Html.LabelFor(model => model.Descripcion)
         </div>
         <div class="editor-field">
             @Html.EditorFor(model => model.Descripcion)
             @Html.ValidationMessageFor(model => model.Descripcion)
         </div>
</fieldset>
<footer>
<input type="submit" class="btnCommon" value="Guardar Datos"/>
<input type="button" class="btnCancel" value="Cancelar y Regresar" onclick="history.go(-1);" />
</footer>
}
@section Scripts{@Scripts.Render("~/bundles/jqueryval")}










@*@using Didsoft.Mvc.Helpers
@model SIOGDE.AccesoDatos.Entidades.Arma

@{
    ViewBag.Title = "Arma";
}
<link href="~/Content/DataForm.css" rel="stylesheet" />
 
@using (Html.BeginForm("DataForm","Arma",FormMethod.Post, new {@class="box Common", @id="myDataForm"})) {
    <div class="header">
        Editar Arma        
    </div>    
    <fieldset class="boxBody">
        @Html.ValidationMessage("DataFormError")
        <div class="editor-label">
            @Html.LabelFor(model => model.Fuerza)
        </div>
        <div class="editor-field">
            @Html.AutocompleteFor(model => model.FuerzaId_FK, "Fuerza.Nombre", Url.Action("SearchByFilter", "Fuerza"))
            @Html.ValidationMessageFor(model => model.FuerzaId_FK)             
        </div>

        <div class="editor-label">
            @Html.HiddenFor(model => model.Guid)
            
            @Html.LabelFor(model => model.Guid)
        </div>
        <div class="editor-field">            
            @Html.EditorFor(model => model.Guid)
            @Html.ValidationMessageFor(model => model.Guid)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Codigo)
        </div>
        <div class="editor-field">            
            @Html.EditorFor(model => model.Codigo)
            @Html.ValidationMessageFor(model => model.Codigo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nombre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nombre)
            @Html.ValidationMessageFor(model => model.Nombre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Descripcion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Descripcion)
            @Html.ValidationMessageFor(model => model.Descripcion)
        </div>
    </fieldset>
     <footer>        
	    <input type="submit" class="btnCommon" value="Guardar Datos">
         <input type="button" class="btnCancel" value ="Cancelar y Regresar" onclick="history.go(-1);"/>	    
	</footer>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
